-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add driver submission address to the autopilot #3065
base: main
Are you sure you want to change the base?
Conversation
b52a744
to
42bf53a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code to make things optional is pretty convoluted. Let's make it required from the start.
Would also be good to prepare the infra PR in the meantime.
4910d52
to
df34e7e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add a manual step (to the tutorial for solver submission keys rotation in notion) to
- Update the infra configuration for autopilot
- To make sure the solver switched their submission to use new account
ff9095c
to
ef08450
Compare
This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one change proposal.
let drivers_futures = args | ||
.drivers | ||
.into_iter() | ||
.map(|driver| async move { | ||
infra::Driver::try_new( | ||
driver.url, | ||
driver.name.clone(), | ||
driver.fairness_threshold.map(Into::into), | ||
driver.submission_account, | ||
) | ||
.await | ||
.map(Arc::new) | ||
.expect("failed to load solver configuration") | ||
}) | ||
.collect::<Vec<_>>(); | ||
|
||
let drivers = futures::future::join_all(drivers_futures) | ||
.await | ||
.into_iter() | ||
.collect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let drivers_futures = args | |
.drivers | |
.into_iter() | |
.map(|driver| async move { | |
infra::Driver::try_new( | |
driver.url, | |
driver.name.clone(), | |
driver.fairness_threshold.map(Into::into), | |
driver.submission_account, | |
) | |
.await | |
.map(Arc::new) | |
.expect("failed to load solver configuration") | |
}) | |
.collect::<Vec<_>>(); | |
let drivers = futures::future::join_all(drivers_futures) | |
.await | |
.into_iter() | |
.collect(); | |
let drivers_futures = args | |
.drivers | |
.into_iter() | |
.map(|driver| async move { | |
infra::Driver::try_new( | |
driver.url, | |
driver.name.clone(), | |
driver.fairness_threshold.map(Into::into), | |
driver.submission_account, | |
) | |
.await | |
.map(Arc::new) | |
}) | |
.collect::<Vec<_>>(); | |
let drivers = futures::future::try_join_all(drivers_futures) | |
.await | |
.expect("failed to load solver configuration"); |
This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed. |
PR is ready to be merged. Sepolia swap passed successfully. Just a few more nits in infra PR and we can merge them both at the same time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR is ready to be merged. Sepolia swap passed successfully.
Just a few more nits in infra PR and we can merge them both at the same time.
Could you link the infra PR explicitly in the description somewhere and also change join_all
to try_join_all
, as was suggested above?
Description
This PR should solve: #3045 and #2780
Changes
/solve
to drivers which have been deny listedHow to test
Related Issues
Fixes #3045
Fixes #2780